package sp.phone.fragment;

import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.View;

public abstract class NoframeDialogFragment extends DialogFragment {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.setCancelable(true);
		setStyle(DialogFragment.STYLE_NO_FRAME, 0);
	}

	@Override
	public void onViewCreated(View view, Bundle savedInstanceState) {
		super.onViewCreated(view, savedInstanceState);
		this.getDialog().setCanceledOnTouchOutside(true);
	}
	
}
